import { axios } from '@/utils/request'

/**
 * 查询供应商
 *
 * @author Eric
 * @date 2021-03-27 11:32:40
 */
export function supplierPage (parameter) {
  return axios({
    url: '/supplier/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 供应商列表
 *
 * @author Eric
 * @date 2021-03-27 11:32:40
 */
export function supplierList (parameter) {
  return axios({
    url: '/supplier/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加供应商
 *
 * @author Eric
 * @date 2021-03-27 11:32:40
 */
export function supplierAdd (parameter) {
  return axios({
    url: '/supplier/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑供应商
 *
 * @author Eric
 * @date 2021-03-27 11:32:40
 */
export function supplierEdit (parameter) {
  return axios({
    url: '/supplier/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除供应商
 *
 * @author Eric
 * @date 2021-03-27 11:32:40
 */
export function supplierDelete (parameter) {
  return axios({
    url: '/supplier/delete',
    method: 'post',
    data: parameter
  })
}
